home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 7
/
Aminet 7 - August 1995.iso
/
Aminet
/
text
/
hyper
/
ADtoHT2_1.lha
/
Source.lha
/
MyLib.lha
/
amiga
/
datapointertointeger.c
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-04-16
|
362 b
|
21 lines
#include <Amiga.h>
/************************************************************************/
ULONG (DataPointerToInteger)(void *Pointer)
{
#if defined(__GNUC__) && defined(__OPTIMIZE__)
return __inlined_DataPointerToInteger(Pointer);
#else
union
{
void *Pointer;
ULONG Integer;
} t;
t.Pointer=Pointer;
return t.Integer;
#endif
}